package com.smartfast4j.manager.modules.sys.service.impl;

import com.smartfast4j.manager.modules.sys.service.SysConfigService;
import com.smartfast4j.mapper.sys.SysConfigMapper;
import com.smartfast4j.pojo.sys.SysConfig;
import com.smartfast4j.pojo.sys.SysConfigExample;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysConfigServiceImpl implements SysConfigService {
    @Autowired
    private SysConfigMapper sysConfigMapper;

    private static final Logger logger = LoggerFactory.getLogger(SysConfigServiceImpl.class);

    public int countByExample(SysConfigExample example) {
        int count = this.sysConfigMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public SysConfig selectByPrimaryKey(Long id) {
        return this.sysConfigMapper.selectByPrimaryKey(id);
    }

    public List<SysConfig> selectByExample(SysConfigExample example) {
        return this.sysConfigMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Long id) {
        return this.sysConfigMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SysConfig record) {
        return this.sysConfigMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SysConfig record) {
        return this.sysConfigMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(SysConfigExample example) {
        return this.sysConfigMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(SysConfig record, SysConfigExample example) {
        return this.sysConfigMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(SysConfig record, SysConfigExample example) {
        return this.sysConfigMapper.updateByExample(record, example);
    }

    public int insert(SysConfig record) {
        return this.sysConfigMapper.insert(record);
    }

    public int insertSelective(SysConfig record) {
        return this.sysConfigMapper.insertSelective(record);
    }

    public int insertBatchSelective(List<SysConfig> records) {
        return this.sysConfigMapper.insertBatchSelective(records);
    }

    public int updateBatchByPrimaryKeySelective(List<SysConfig> records) {
        return this.sysConfigMapper.updateBatchByPrimaryKeySelective(records);
    }
}